package com.bruce.download;

import com.bruce.download.core.Downloader;
import com.bruce.download.util.LogUtils;

public class Main {
    public static void main(String[] args) {
        String url = "https://download.ydstatic.com/notewebsite/downloads/YNote.exe";
        LogUtils.info("开始下载东西啦.......{}",url);
        long starTime = System.currentTimeMillis();
        Downloader downloader = new Downloader();
        downloader.download(url);
        LogUtils.info("下载耗时{}",(System.currentTimeMillis()-starTime)+"ms");
    }
}
